// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

/** listProductYieldOffset GET /product-yield-offset */
export async function listProductYieldOffsetUsingGET(options?: { [key: string]: any }) {
  return request<API.BaseResponseListProductYieldOffsetDTO_>('/product-yield-offset', {
    method: 'GET',
    ...(options || {}),
  });
}

/** editProductYieldOffset PUT /product-yield-offset */
export async function editProductYieldOffsetUsingPUT(
  body: API.EditProductYieldOffsetQuery,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/product-yield-offset', {
    method: 'PUT',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** addProductYieldOffset POST /product-yield-offset */
export async function addProductYieldOffsetUsingPOST(
  body: API.AddProductYieldOffsetQuery,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/product-yield-offset', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** deleteProductYieldOffset DELETE /product-yield-offset */
export async function deleteProductYieldOffsetUsingDELETE(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.deleteProductYieldOffsetUsingDELETEParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/product-yield-offset', {
    method: 'DELETE',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
